package cn.amebius.simpledocker.service;

import cn.amebius.simpledocker.entity.dto.DockerContainerDto;
import cn.amebius.simpledocker.entity.model.ContainerInfoModel;
import org.springframework.stereotype.Service;

/**
 * 容器服务类
 * @author 阿伟
 * @date 2023/8/30 20:45
 */

@Service
public interface ContainerService {

    DockerContainerDto getAll();

    void startContainer(Integer key, String id);

    void stopContainer(Integer key, String id);

    void pauseContainer(Integer key, String id);

    void unpauseContainer(Integer key, String id);

    ContainerInfoModel getInfoById(Integer key, String id);

    void renameContainer(Integer key, String id,String name);

    void removeContainer(Integer key, String id, Boolean force, Boolean removeVolume);
}
